package org.apache.dubbo.demo.example.eg10;

public class DemoServiceImpl implements DemoService {

  @Override
  public String sayHello(String name) {
    System.out.println("************************* sayHello() invoked *************************");
    return "hello, " + name;
  }

  @Override
  public String sayHello(Person person) {
    System.out.println("************************* sayHello() invoked *************************");
    return "hello, " + person.getName() + ", email: " + person.getEmail();
  }
}
